package com.nmsl.registration.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.registration.mapper.skxxPatientMapper;
import com.nmsl.registration.domain.skxxPatient;
import com.nmsl.registration.service.IskxxPatientService;

/**
 * 患者Service业务层处理
 * 
 * @author skx
 * @date 2025-02-21
 */
@Service
public class skxxPatientServiceImpl implements IskxxPatientService 
{
    @Autowired
    private skxxPatientMapper skxxPatientMapper;

    /**
     * 查询患者
     * 
     * @param patientId 患者主键
     * @return 患者
     */
    @Override
    public skxxPatient selectskxxPatientByPatientId(Long patientId)
    {
        return skxxPatientMapper.selectskxxPatientByPatientId(patientId);
    }

    /**
     * 查询患者列表
     * 
     * @param skxxPatient 患者
     * @return 患者
     */
    @Override
    public List<skxxPatient> selectskxxPatientList(skxxPatient skxxPatient)
    {
        return skxxPatientMapper.selectskxxPatientList(skxxPatient);
    }

    /**
     * 新增患者
     * 
     * @param skxxPatient 患者
     * @return 结果
     */
    @Override
    public int insertskxxPatient(skxxPatient skxxPatient)
    {
        return skxxPatientMapper.insertskxxPatient(skxxPatient);
    }

    /**
     * 修改患者
     * 
     * @param skxxPatient 患者
     * @return 结果
     */
    @Override
    public int updateskxxPatient(skxxPatient skxxPatient)
    {
        return skxxPatientMapper.updateskxxPatient(skxxPatient);
    }

    /**
     * 批量删除患者
     * 
     * @param patientIds 需要删除的患者主键
     * @return 结果
     */
    @Override
    public int deleteskxxPatientByPatientIds(Long[] patientIds)
    {
        return skxxPatientMapper.deleteskxxPatientByPatientIds(patientIds);
    }

    /**
     * 删除患者信息
     * 
     * @param patientId 患者主键
     * @return 结果
     */
    @Override
    public int deleteskxxPatientByPatientId(Long patientId)
    {
        return skxxPatientMapper.deleteskxxPatientByPatientId(patientId);
    }
}
